package com.example.studyroom.service;

import com.example.studyroom.Entity.Reservation;
import com.example.studyroom.dto.StudyRoomAdmin.HandleReservationDTO;
import com.example.studyroom.dto.User.UserReserveDTO;

import java.util.List;

public interface ReservationService {
    //用户预约
    void UserReserve(Reservation reservation);

    //获取该用户的预约信息
    List<UserReserveDTO> getReservationByUser(String Uname);

    //用户取消预约
    void cancelReservation(Integer id);

    //显示该管理员所负责的自习室的所有预约
    List<HandleReservationDTO> getReservationByAdmin(String adminName);

    //管理员审核预约
    void handleReservation(Integer id);
}
